package com.example.md.mddemo.exception;

import static com.example.md.mddemo.exception.UserException.BASE_ERROR_CODE;

/**
 * Copyright © 2018年 ziniuxiaozhu. All rights reserved.
 *
 * @Author 临江仙 hzqiuxm@163.com
 * 业务异常，用户不存在
 * @Date 2018/9/14 15:54
 */
public class UserNotFoundException extends UserException {

    public static final int ERROR_CODE = BASE_ERROR_CODE - 1;

    public UserNotFoundException(Long userId) {
        super(ERROR_CODE, "User " + userId + " Not Found");
    }
}
